﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace sys.datas.Models
{
    [Table("sys_users")]
    public class User
    {
        [Column("orgcode")]
        public string OrgCode { get; set; }

        [Column("usercode")]
        public string UserCode { get; set; }

        [Column("username")]
        public string UserName { get; set; }

        [Column("password")]
        public string Password { get; set; }

        [Column("isadmin")]
        public bool IsAdmin { get; set; }

        [Column("ismachine")]
        public bool IsMachine { get; set; }

        [Column("expirydates")]
        public DateTime? ExpiryDates { get; set; }

        [Column("isvalid")]
        public bool IsValid { get; set; }
    }
}
